<h4>Historia operacji<h4>
                 <div style="margin-top: -56px;">
                    <ul class="pagination pagination-sm pull-right">
                       <li>
                           <a href="<?php echo Yii::app()->createUrl(Yii::app()->controller->getId().'/'.Yii::app()->controller->getAction()->getId(), array('pageNumber' => 1, 'id' => isset($_GET['id'])?$_GET['id']:''))?>" aria-label="Pierwsza">
                               <span aria-hidden="true">&laquo;</span>
                           </a>
                       </li>
                    <?php 
                       if($pager > 0){
                           for($i = 1; $i<=$pager; $i++){
                               if($pageNumber - 3 <= $i-1 && $pageNumber + 3 >= $i-1){
                                   if($i-1 == $pageNumber){
                                       echo '<li class="active"><a href="'.Yii::app()->createUrl(Yii::app()->controller->getId().'/'.Yii::app()->controller->getAction()->getId(), array('pageNumber' => $i, 'id' => isset($_GET['id'])?$_GET['id']:'')).'">'.$i.'<span class="sr-only">(current)</span></a></li>';
                                   }else{
                                       echo '<li><a href="'.Yii::app()->createUrl(Yii::app()->controller->getId().'/'.Yii::app()->controller->getAction()->getId(), array('pageNumber' => $i, 'id' => isset($_GET['id'])?$_GET['id']:'')).'">'.$i.'</a></li>';
                                   }
                               }
                           }
                       }
                    ?> 
                       <li>
                           <a href="<?php echo Yii::app()->createUrl(Yii::app()->controller->getId().'/'.Yii::app()->controller->getAction()->getId(), array('pageNumber' => $pager, 'id' => isset($_GET['id'])?$_GET['id']:''))?>" aria-label="Ostatnia">
                               <span aria-hidden="true">&raquo;</span>
                           </a>
                       </li>
                    </ul>
                      <div class="clearfix"></div>
                 </div>
                 <ul style="list-style: outside none none; margin: 0px ! important; padding: 0px;">
                     <?php foreach($history as $h){ ?>
                      <?php if($h['Operacja'] == '-'){
                            echo '<li style="display:block;border:1px solid #FF0039;background:#FFF4F7;margin-bottom: 1px;">';
                        }else{
                             echo '<li style="display:block;border:1px solid #3FB618;background:#F9FFF7;margin-bottom: 1px;">';
                        }?>
                         <div class="col-sm-1" style="padding: 0px; text-align: center;">
                             <?php if($h['Operacja'] == '-'){
                                 echo '<div class="alert alert-danger" style="display: table;margin: 0px; height: 78px;"><i style="vertical-align: middle; display: table-cell;" class="fa fa-sign-out fa-lg fa-rotate-180"></i></div>';
                             }else{
                                 echo '<div class="alert alert-success" style="display: table;margin: 0px; height: 78px;"><i style="vertical-align: middle; display: table-cell;" class="fa fa-sign-in fa-lg"></i></div>';
                             }?>
                         </div>
                         <div class="col-sm-11" style="padding-left: 0px;">
                             <div class="col-sm-12" style="padding-top: 5px;">
                                 <div class="col-sm-8" style="padding: 0px;">
                                    <?php echo $h['Tytuł operacji'];?><br>
                                        <?php if($h['Operacja'] == '-'){
                                            echo '<small>Z konta <b>'.$h['Rodzaj konta'].'</b></small>';
                                        }else{
                                            echo '<small>Na konto <b>'.$h['Rodzaj konta'].'</b></small>';
                                        }?>
                                 </div>
                                 <div class="col-sm-4" style="padding: 0px;">
                                     <p><small><?php echo 'Data operacji: '.$h['Data operacji'];?></small></p> 
                                 </div>
                             </div>
                             <div class="col-sm-12">
                                 <p>
                                     Kwota przelewu: 
                                     <b><?php echo ((float)('0'.trim($h['Kwota transakcji']))).($h['Waluta transkacji'] != 'złoty'?' ('.$h['Kwota w walucie podstawowej'].' '.$h['Waluta podstawowa'].')':'').' '.$h['Waluta transkacji'];?>
                                     </b>
                                 </p> 
                             </div>
                         </div>
                             <button 
                                 type="button" 
                                 class="btn btn-primary pull-right" 
                                 data-toggle="popover" 
                                 data-placement="bottom"
                                 title="Dane konta operacji" 
                                 style="position: absolute; margin-left: -60px; margin-top: 17px;"
                                 data-content="<?php echo $h['Dane konta operacji'];?>"><i class="fa fa-tag"></i></button>
                         <div class="clearfix"></div>
                     </li>
                     <?php } ?>
                 </ul>